package com.bootdo.app.domain;

import java.io.Serializable;

/**
 * 用户地址类
 */
public class AddressSession implements Serializable {

    /**
     * 选择城市方式
     * 1、定位获取
     * 2、IP地址获取
     * 3、手动选择
     */
    private Integer icand;

//    最终选择城市
    private String lastCity;
//    ip地址定位城市
    private String ipCity;
//    城市编号
    private Integer cityCode;
//    省编号
    private Integer provinceCode;

//    省
    private String province;
//    市
    private String city;
//    县区
    private String district;
//    其他
    private String street;
//    详细地址
    private String address;


//    经度
    private Double lat;
//    纬度
    private Double lng;


    @Override
    public String toString() {
        return "AddressSession{" +
                "icand=" + icand +
                ", lastCity='" + lastCity + '\'' +
                ", ipCity='" + ipCity + '\'' +
                ", cityCode=" + cityCode +
                ", provinceCode=" + provinceCode +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", district='" + district + '\'' +
                ", street='" + street + '\'' +
                ", address='" + address + '\'' +
                ", lat=" + lat +
                ", lng=" + lng +
                '}';
    }

    public Integer getIcand() {
        return icand;
    }

    public void setIcand(Integer icand) {
        this.icand = icand;
    }

    public String getLastCity() {
        return lastCity;
    }

    public void setLastCity(String lastCity) {
        this.lastCity = lastCity;
    }

    public String getIpCity() {
        return ipCity;
    }

    public void setIpCity(String ipCity) {
        this.ipCity = ipCity;
    }

    public Integer getCityCode() {
        return cityCode;
    }

    public void setCityCode(Integer cityCode) {
        this.cityCode = cityCode;
    }

    public Integer getProvinceCode() {
        return provinceCode;
    }

    public void setProvinceCode(Integer provinceCode) {
        this.provinceCode = provinceCode;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getStreet() {
        return street;
    }

    public void setStreet(String street) {
        this.street = street;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Double getLat() {
        return lat;
    }

    public void setLat(Double lat) {
        this.lat = lat;
    }

    public Double getLng() {
        return lng;
    }

    public void setLng(Double lng) {
        this.lng = lng;
    }
}
